package com.dao;

import com.model.Option;
import com.model.Question;

import java.util.ArrayList;

public interface QuestionDao extends Dao {
    public ArrayList<Question> getQuestions(int n);

    public boolean isRightAns(String[] userOptionId, int qId);

    public ArrayList<Option> getOptionsByQId(int qId);

    public ArrayList<Option> getAnswersByQId(int qId);

    public int getQuestionRealNum();

    public int getQuestionType(int qId);

    public String[] contextToOId(String context);
}
